﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class 车主_注册_登录_注册 : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {

    }
    protected void Button1_Click(object sender, EventArgs e)
    {
        string name = TextBox1.Text.Trim();
        string ps = TextBox2.Text.Trim();
        Car_users tmp = new Car_users();
        int result = tmp.car_users(tmp);
        if (result > 0)
        {
            Response.Write("<script>alert(\"恭喜你，注册成功！！\")</script>");
        }
        else
        {
            Response.Write("<script>alert(\"恭喜你，注册失败！！\")</script>");
        }
    }
    protected void Button2_Click(object sender, EventArgs e)
    {
        Response.Redirect("~/车主/注册 登录/Default.aspx");
    }
}